#ifndef TEXTEDIT_H
#define TEXTEDIT_H
#include <QTextEdit>
#include <QKeyEvent>

class TextEdit :public QTextEdit
{
    Q_OBJECT
public:
    TextEdit(QWidget *parent);
    bool  isOkFormat(QString input);

public slots:
    void slot_setChecked(bool mark){
        clear();
        m_ischecked = mark;
    }


protected:
    void keyPressEvent(QKeyEvent *e);

private:
    bool m_ischecked;
};

#endif // TEXTEDIT_H
